package com.itcoon.cloud.framework.config;/**
 * @author Athric Yu
 * 2024/11/26
 **/

import com.itcoon.cloud.framework.listener.ApplicationListener;
import com.itcoon.cloud.framework.model.BootstrapTask;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.context.annotation.Bean;

import java.util.List;

/**
 *
 *
 * @author Athric Yu
 * 2024/11/26
 **/
@AutoConfiguration
public class BootstrapConfiguration {

    @Bean
    public ApplicationListener applicationListener(List<BootstrapTask<?>> tasks){
        return new ApplicationListener(tasks);
    }

}
